package com.lw.client;

import com.lw.company.Department;
import com.lw.utils.Result;
import com.lw.utils.ResultCode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 申明接口，通过feign调用其他微服务
 */
//申明要调用的微服务名称i
@FeignClient("hrm-company")
public interface DepartmentFeignClient {
    /**
     * 调用微服务接口
     */
    @GetMapping("/department/findById")
    public Result findById(@RequestParam(value = "id") String id);
}
